package com.cskaoyan.bean;

import java.util.ArrayList;
import java.util.List;

public class MallManagementExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public MallManagementExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andLabelOneIsNull() {
            addCriterion("label_one is null");
            return (Criteria) this;
        }

        public Criteria andLabelOneIsNotNull() {
            addCriterion("label_one is not null");
            return (Criteria) this;
        }

        public Criteria andLabelOneEqualTo(String value) {
            addCriterion("label_one =", value, "labelOne");
            return (Criteria) this;
        }

        public Criteria andLabelOneNotEqualTo(String value) {
            addCriterion("label_one <>", value, "labelOne");
            return (Criteria) this;
        }

        public Criteria andLabelOneGreaterThan(String value) {
            addCriterion("label_one >", value, "labelOne");
            return (Criteria) this;
        }

        public Criteria andLabelOneGreaterThanOrEqualTo(String value) {
            addCriterion("label_one >=", value, "labelOne");
            return (Criteria) this;
        }

        public Criteria andLabelOneLessThan(String value) {
            addCriterion("label_one <", value, "labelOne");
            return (Criteria) this;
        }

        public Criteria andLabelOneLessThanOrEqualTo(String value) {
            addCriterion("label_one <=", value, "labelOne");
            return (Criteria) this;
        }

        public Criteria andLabelOneLike(String value) {
            addCriterion("label_one like", value, "labelOne");
            return (Criteria) this;
        }

        public Criteria andLabelOneNotLike(String value) {
            addCriterion("label_one not like", value, "labelOne");
            return (Criteria) this;
        }

        public Criteria andLabelOneIn(List<String> values) {
            addCriterion("label_one in", values, "labelOne");
            return (Criteria) this;
        }

        public Criteria andLabelOneNotIn(List<String> values) {
            addCriterion("label_one not in", values, "labelOne");
            return (Criteria) this;
        }

        public Criteria andLabelOneBetween(String value1, String value2) {
            addCriterion("label_one between", value1, value2, "labelOne");
            return (Criteria) this;
        }

        public Criteria andLabelOneNotBetween(String value1, String value2) {
            addCriterion("label_one not between", value1, value2, "labelOne");
            return (Criteria) this;
        }

        public Criteria andLabelTwoIsNull() {
            addCriterion("label_two is null");
            return (Criteria) this;
        }

        public Criteria andLabelTwoIsNotNull() {
            addCriterion("label_two is not null");
            return (Criteria) this;
        }

        public Criteria andLabelTwoEqualTo(String value) {
            addCriterion("label_two =", value, "labelTwo");
            return (Criteria) this;
        }

        public Criteria andLabelTwoNotEqualTo(String value) {
            addCriterion("label_two <>", value, "labelTwo");
            return (Criteria) this;
        }

        public Criteria andLabelTwoGreaterThan(String value) {
            addCriterion("label_two >", value, "labelTwo");
            return (Criteria) this;
        }

        public Criteria andLabelTwoGreaterThanOrEqualTo(String value) {
            addCriterion("label_two >=", value, "labelTwo");
            return (Criteria) this;
        }

        public Criteria andLabelTwoLessThan(String value) {
            addCriterion("label_two <", value, "labelTwo");
            return (Criteria) this;
        }

        public Criteria andLabelTwoLessThanOrEqualTo(String value) {
            addCriterion("label_two <=", value, "labelTwo");
            return (Criteria) this;
        }

        public Criteria andLabelTwoLike(String value) {
            addCriterion("label_two like", value, "labelTwo");
            return (Criteria) this;
        }

        public Criteria andLabelTwoNotLike(String value) {
            addCriterion("label_two not like", value, "labelTwo");
            return (Criteria) this;
        }

        public Criteria andLabelTwoIn(List<String> values) {
            addCriterion("label_two in", values, "labelTwo");
            return (Criteria) this;
        }

        public Criteria andLabelTwoNotIn(List<String> values) {
            addCriterion("label_two not in", values, "labelTwo");
            return (Criteria) this;
        }

        public Criteria andLabelTwoBetween(String value1, String value2) {
            addCriterion("label_two between", value1, value2, "labelTwo");
            return (Criteria) this;
        }

        public Criteria andLabelTwoNotBetween(String value1, String value2) {
            addCriterion("label_two not between", value1, value2, "labelTwo");
            return (Criteria) this;
        }

        public Criteria andLabelThreeIsNull() {
            addCriterion("label_three is null");
            return (Criteria) this;
        }

        public Criteria andLabelThreeIsNotNull() {
            addCriterion("label_three is not null");
            return (Criteria) this;
        }

        public Criteria andLabelThreeEqualTo(String value) {
            addCriterion("label_three =", value, "labelThree");
            return (Criteria) this;
        }

        public Criteria andLabelThreeNotEqualTo(String value) {
            addCriterion("label_three <>", value, "labelThree");
            return (Criteria) this;
        }

        public Criteria andLabelThreeGreaterThan(String value) {
            addCriterion("label_three >", value, "labelThree");
            return (Criteria) this;
        }

        public Criteria andLabelThreeGreaterThanOrEqualTo(String value) {
            addCriterion("label_three >=", value, "labelThree");
            return (Criteria) this;
        }

        public Criteria andLabelThreeLessThan(String value) {
            addCriterion("label_three <", value, "labelThree");
            return (Criteria) this;
        }

        public Criteria andLabelThreeLessThanOrEqualTo(String value) {
            addCriterion("label_three <=", value, "labelThree");
            return (Criteria) this;
        }

        public Criteria andLabelThreeLike(String value) {
            addCriterion("label_three like", value, "labelThree");
            return (Criteria) this;
        }

        public Criteria andLabelThreeNotLike(String value) {
            addCriterion("label_three not like", value, "labelThree");
            return (Criteria) this;
        }

        public Criteria andLabelThreeIn(List<String> values) {
            addCriterion("label_three in", values, "labelThree");
            return (Criteria) this;
        }

        public Criteria andLabelThreeNotIn(List<String> values) {
            addCriterion("label_three not in", values, "labelThree");
            return (Criteria) this;
        }

        public Criteria andLabelThreeBetween(String value1, String value2) {
            addCriterion("label_three between", value1, value2, "labelThree");
            return (Criteria) this;
        }

        public Criteria andLabelThreeNotBetween(String value1, String value2) {
            addCriterion("label_three not between", value1, value2, "labelThree");
            return (Criteria) this;
        }

        public Criteria andOpIdIsNull() {
            addCriterion("op_id is null");
            return (Criteria) this;
        }

        public Criteria andOpIdIsNotNull() {
            addCriterion("op_id is not null");
            return (Criteria) this;
        }

        public Criteria andOpIdEqualTo(String value) {
            addCriterion("op_id =", value, "opId");
            return (Criteria) this;
        }

        public Criteria andOpIdNotEqualTo(String value) {
            addCriterion("op_id <>", value, "opId");
            return (Criteria) this;
        }

        public Criteria andOpIdGreaterThan(String value) {
            addCriterion("op_id >", value, "opId");
            return (Criteria) this;
        }

        public Criteria andOpIdGreaterThanOrEqualTo(String value) {
            addCriterion("op_id >=", value, "opId");
            return (Criteria) this;
        }

        public Criteria andOpIdLessThan(String value) {
            addCriterion("op_id <", value, "opId");
            return (Criteria) this;
        }

        public Criteria andOpIdLessThanOrEqualTo(String value) {
            addCriterion("op_id <=", value, "opId");
            return (Criteria) this;
        }

        public Criteria andOpIdLike(String value) {
            addCriterion("op_id like", value, "opId");
            return (Criteria) this;
        }

        public Criteria andOpIdNotLike(String value) {
            addCriterion("op_id not like", value, "opId");
            return (Criteria) this;
        }

        public Criteria andOpIdIn(List<String> values) {
            addCriterion("op_id in", values, "opId");
            return (Criteria) this;
        }

        public Criteria andOpIdNotIn(List<String> values) {
            addCriterion("op_id not in", values, "opId");
            return (Criteria) this;
        }

        public Criteria andOpIdBetween(String value1, String value2) {
            addCriterion("op_id between", value1, value2, "opId");
            return (Criteria) this;
        }

        public Criteria andOpIdNotBetween(String value1, String value2) {
            addCriterion("op_id not between", value1, value2, "opId");
            return (Criteria) this;
        }

        public Criteria andApiIsNull() {
            addCriterion("api is null");
            return (Criteria) this;
        }

        public Criteria andApiIsNotNull() {
            addCriterion("api is not null");
            return (Criteria) this;
        }

        public Criteria andApiEqualTo(String value) {
            addCriterion("api =", value, "api");
            return (Criteria) this;
        }

        public Criteria andApiNotEqualTo(String value) {
            addCriterion("api <>", value, "api");
            return (Criteria) this;
        }

        public Criteria andApiGreaterThan(String value) {
            addCriterion("api >", value, "api");
            return (Criteria) this;
        }

        public Criteria andApiGreaterThanOrEqualTo(String value) {
            addCriterion("api >=", value, "api");
            return (Criteria) this;
        }

        public Criteria andApiLessThan(String value) {
            addCriterion("api <", value, "api");
            return (Criteria) this;
        }

        public Criteria andApiLessThanOrEqualTo(String value) {
            addCriterion("api <=", value, "api");
            return (Criteria) this;
        }

        public Criteria andApiLike(String value) {
            addCriterion("api like", value, "api");
            return (Criteria) this;
        }

        public Criteria andApiNotLike(String value) {
            addCriterion("api not like", value, "api");
            return (Criteria) this;
        }

        public Criteria andApiIn(List<String> values) {
            addCriterion("api in", values, "api");
            return (Criteria) this;
        }

        public Criteria andApiNotIn(List<String> values) {
            addCriterion("api not in", values, "api");
            return (Criteria) this;
        }

        public Criteria andApiBetween(String value1, String value2) {
            addCriterion("api between", value1, value2, "api");
            return (Criteria) this;
        }

        public Criteria andApiNotBetween(String value1, String value2) {
            addCriterion("api not between", value1, value2, "api");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}